package com.qiantu.phone.bean;

import android.os.Parcel;
import android.os.Parcelable;
import java.util.ArrayList;

public class RecommendSceneBean implements Parcelable {

    private String key;
    private String name;
    private String image;
    private String smallImage;
    private String sceneIcon;
    private String description;
    private ArrayList<RecommendSceneDeviceBean> devices;

    protected RecommendSceneBean(Parcel in) {
        key = in.readString();
        name = in.readString();
        image = in.readString();
        smallImage = in.readString();
        sceneIcon = in.readString();
        description = in.readString();
        devices = in.createTypedArrayList(RecommendSceneDeviceBean.CREATOR);
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(key);
        dest.writeString(name);
        dest.writeString(image);
        dest.writeString(smallImage);
        dest.writeString(sceneIcon);
        dest.writeString(description);
        dest.writeTypedList(devices);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<RecommendSceneBean> CREATOR = new Creator<RecommendSceneBean>() {
        @Override
        public RecommendSceneBean createFromParcel(Parcel in) {
            return new RecommendSceneBean(in);
        }

        @Override
        public RecommendSceneBean[] newArray(int size) {
            return new RecommendSceneBean[size];
        }
    };

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getSmallImage() {
        return smallImage;
    }

    public void setSmallImage(String smallImage) {
        this.smallImage = smallImage;
    }

    public String getSceneIcon() {
        return sceneIcon;
    }

    public void setSceneIcon(String sceneIcon) {
        this.sceneIcon = sceneIcon;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public ArrayList<RecommendSceneDeviceBean> getDevices() {
        return devices;
    }

    public void setDevices(ArrayList<RecommendSceneDeviceBean> devices) {
        this.devices = devices;
    }
}
